<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //迭代方法
        var arr=[12,456,456,40,48,64,654,56];
        arr.every(function(item,index,arr){
            return item>10;
        })
        arr.some(function(item,index,arr){
            return item>1000;
        })
        var newArr=arr.filter(function(item,index,arr){
            return item>100
        })
        var newArr1=arr.map(function(item,index,arr){
            return item+100
        })


        var value=arr.reduce(function(prev,cur,index,arr){
            return prev+cur;
        })
    </script>
</body>
</html>